package cn.tac.test.mybatis.model;

import cn.tac.test.mybatis.constant.TestEnum;

/**
 * @author : tac
 * @since : 04/09/2017
 */
public class Hello {
    private Integer id;
    private String field1;
    private TestEnum field2;
    private HelloExt ext;

    public Hello() {
    }

    public Hello(Integer id, String field1) {
        this.id = id + 1;
        this.field1 = field1 + "hhh";
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getField1() {
        return field1;
    }

    public void setField1(String field1) {
        this.field1 = field1;
    }

    public TestEnum getField2() {
        return field2;
    }

    public void setField2(TestEnum field2) {
        this.field2 = field2;
    }

    public HelloExt getExt() {
        return ext;
    }

    public void setExt(HelloExt ext) {
        this.ext = ext;
    }

    @Override
    public String toString() {
        return "Hello{" +
                "id=" + id +
                ", field1='" + field1 + '\'' +
                ", field2=" + field2 +
                ", ext=" + ext +
                '}';
    }
}
